﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cxx.Entity.Extend
{
    /// <summary>
    /// 数据字段信息
    /// </summary>
    public class DataFieldInfo
    {
        public DataFieldInfo() { }

        /// <summary>
        /// 构造一个查询字段(字段名,字段类型,表名,操作)
        /// </summary>
        /// <param name="name">字段名</param>
        /// <param name="type">字段类型(Integer,Character,DateTime,DateToInt)</param>
        /// <param name="table">表名</param>
        /// <param name="operate">操作</param>
        public DataFieldInfo(string name, string type, string table, string operate)
        {
            Name = name;
            Type = type;
            Table = table;
            Operate = operate;
        }

        /// <summary>
        /// 字段名
        /// </summary>
        public string Name { set; get; }

        /// <summary>
        /// 字段类型
        /// </summary>
        public string Type { set; get; }

        /// <summary>
        /// 表名
        /// </summary>
        public string Table { set; get; }

        /// <summary>
        /// 运算符
        /// </summary>
        public string Operate { set; get; }
    }
}
